<!--
 @description 导航
 @fileName Nav.vue
 @author zengqiongying
 @created 2022/12/25 16:48:27
-->
<template>
  <div class="home-nav-list">
    <div v-for="(item,i) in list" :key="i" class="nav-item" @click="clickHandle(item)">
      <div class="icon">
        <ImageVideo :host="imgHost" :src="item.pic" fit="contain" />
      </div>
      <div class="name">{{ item.name }}</div>
    </div>
  </div>
</template>

<script>
import ImageVideo from '@/components/ImageVideo'
import CommonMixin from './CommonMixin'
export default {
  name: 'HomeNav',
  components: {
    ImageVideo
  },
  mixins: [CommonMixin],
  data() {
    return {

    }
  },
  methods: {

  }
}

</script>
<style lang='less' scoped>
  .home-nav-list{
    padding: 0 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    .nav-item{
      width: 20%;
      margin-top: 12px;
      // padding:0 12px;
      padding: 0 5px;
      box-sizing: border-box;
      .icon{
        width: 40px;
        height: 40px;
        margin: 0 auto;
      }
      .name{
        margin-top: 6px;
        height: 18px;
        line-height: 18px;
        overflow: hidden;
        font-size: 12px;
        color: #333333;
        text-align: center;
      }
    }
  }
</style>
